import styled from "styled-components";

import BackgroundImage from './assets/img/背景@2x.png';
import TitleImage from './assets/img/标题栏@2x.png'
import TableAndChartBackgroundImg from './assets/img/外框400_268@2x.png'
import liuchengtu from './assets/img/流程图.png'

export const Home = styled.div`
    width:100vw;
    height:100vh;
    background:url(${BackgroundImage});
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    .title{
        width:100%;
        height:92px;
        background: url(${TitleImage});
        background-size: 100% 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 42px;
        color: white;
    }
    .content{
        flex:1;
        display: flex;
        .infromation{
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content:space-between;
            .basicInfo{
                width:100%;
                height:57%;
                display: flex;
                justify-content:space-between;
                .health{
                    width:24%;
                    height:100%;
                    display: flex;
                    flex-direction:column;
                    justify-content:space-between;
                    margin-right: 5px;
                    .box1{
                        width:100%;
                        height:49%;
                        border: 1px solid #2b54a0;
                        background-color: rgba(0,0,0,0.15);
                        position: relative;
                        .box1-topleft{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            left: -1px;
                            top:-1px;
                            border-top: 1.5px solid #116BB7;
                            border-left: 1.5px solid #116BB7;
                        }
                        .box1-topright{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            right: -1px;
                            top:-1px;
                            border-top: 1.5px solid #116BB7;
                            border-right: 1.5px solid #116BB7;
                        }
                        .box1-bottomleft{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            left: -1px;
                            bottom:-1px;
                            border-bottom: 1.5px solid #116BB7;
                            border-left: 1.5px solid #116BB7;
                        }
                        .box1-bottomright{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            right: -1px;
                            bottom:-1px;
                            border-bottom: 1.5px solid #116BB7;
                            border-right: 1.5px solid #116BB7;
                        }
                        .box1-content{
                            width:100%;
                            height:100%;
                            /* background-color:green */
                        }
                    }
                    .box2{
                        width:100%;
                        height:49%;
                        border: 1px solid #2b54a0;
                        background-color: rgba(0,0,0,0.15);
                        position: relative;
                        .box1-topleft{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            left: -1px;
                            top:-1px;
                            border-top: 1.5px solid #116BB7;
                            border-left: 1.5px solid #116BB7;
                        }
                        .box1-topright{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            right: -1px;
                            top:-1px;
                            border-top: 1.5px solid #116BB7;
                            border-right: 1.5px solid #116BB7;
                        }
                        .box1-bottomleft{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            left: -1px;
                            bottom:-1px;
                            border-bottom: 1.5px solid #116BB7;
                            border-left: 1.5px solid #116BB7;
                        }
                        .box1-bottomright{
                            position: absolute;
                            width:7.5px;
                            height:7.5px;
                            content: '';
                            right: -1px;
                            bottom:-1px;
                            border-bottom: 1.5px solid #116BB7;
                            border-right: 1.5px solid #116BB7;
                        }
                        .box2-content{
                            width:100%;
                            height:100%;
                        }
                    }
                }
                .flowChart{
                    flex: 1;
                    /* background-image: url(${liuchengtu});
                    background-size: 100% 100%; */
                    iframe{
                        width:100%;
                        height:100%;
                    }
                }
            }
            .TableAndChart{
                width:100%;
                height:42%;
                display:flex;
                justify-content:space-around;
                align-items:center;
                .table1{
                    width:48%;
                    height:98%;
                    background:url(${TableAndChartBackgroundImg});
                    background-repeat: no-repeat;
                    background-size: 100% 100% ;
                    position: relative;
                    font-size:18px;
                    color: #00CCFF;
                    font-weight:bold;
                    .tableName{
                        position: absolute;
                        top:20px;
                        left:25px;  
                    }
                    .maincontent{
                        position: absolute;
                        top:50px;
                        left: 12px;
                        width:93.5%; 
                        /* height: 220px; */
                        height: 80%;
                        /* background-color:blue */
                    }
                }
                .chart{
                    width:48%;
                    height:98%;
                    background:url(${TableAndChartBackgroundImg});
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                }
            }
        }
        .thirstyApp{
            width:41%;
            height:100%;
            /* background-color:green; */
        }
    }
`